AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])

AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([libcapability.c])

AM_INIT_AUTOMAKE

AC_PROG_LIBTOOL

AC_CHECK_HEADERS([fcntl.h limits.h paths.h stdlib.h string.h sys/capability.h sys/param.h sys/socket.h unistd.h], [], [exit -1])

AC_CHECK_LIB([c], [cap_enter], [], [exit -1])

AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T

AC_FUNC_MALLOC
AC_CHECK_FUNCS([bzero dup2 setenv strdup])

AC_OUTPUT([Makefile libcapability.pc])

